package com.sean.activity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.sean.R;

public class MyActivity2 extends BaseActivity implements OnClickListener {
	
	public static final String TAG = "Main2";
	
	private Button btn;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.myactivity2);
        btn = (Button)this.findViewById(R.id.btn);
        btn.setOnClickListener(this);
        Log.d(TAG, "onCreate...");
    }

	@Override
	protected void onDestroy() {
		Log.d(TAG, "onDestroy...");
		super.onDestroy();
	}

	@Override
	protected void onPause() {
		Log.d(TAG, "onPause...");
		super.onPause();
	}

	@Override
	protected void onRestart() {
		Log.d(TAG, "onRestart...");
		super.onRestart();
	}

	@Override
	protected void onRestoreInstanceState(Bundle savedInstanceState) {
		Log.d(TAG, "onRestoreInstanceState...");
		super.onRestoreInstanceState(savedInstanceState);
	}

	@Override
	protected void onResume() {
		Log.d(TAG, "onResume...");
		super.onResume();
	}

	@Override
	protected void onStart() {
		Log.d(TAG, "onStart...");
		super.onStart();
	}

	@Override
	protected void onStop() {
		Log.d(TAG, "onStop...");
		super.onStop();
	}

	@Override
	public void onClick(View v) {
		Intent intent = new Intent();
		intent.setClass(this, MyActivity.class);
		this.startActivity(intent);
	}
    
}